
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>Dashboard Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link href="/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/public/css/main.css" rel="stylesheet">
  </head>

  <body style="padding-top: 0">
    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-12 col-sm-offset-3 col-md-12 col-md-offset-2 main">
          <!-- <h1 class="page-header">Dashboard</h1> -->

          <!-- <div class="row placeholders">
            {{each fruits}}
                <div class="col-xs-6 col-sm-3 placeholder">
                <img src="" width="200" height="200" class="img-responsive" alt="Generic placeholder thumbnail">
                <h4>{{$value}}</h4>
                <span class="text-muted">Something else</span>
                </div>
            {{/each}}
          </div> -->

          <h2 class="sub-header">Section title</h2>
          <div class="table-responsive">
            <a href="/students/news">
              <button
              class="btn btn-primary"
              type="submit"
              style="margin-bottom: 10px;float: right;">添加学生</button>
            </a>
            <table class="table table-striped">
              <thead>
                <tr>
                  <th>序号</th>
                  <th>姓名</th>
                  <th>年龄</th>
                  <th>地址</th>
                  <th>性别</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
                  {{each list}}
                    <tr>
                    <td>{{$value.id}}</td>
                    <td>{{$value.name}}</td>
                    <td>{{$value.age}}</td>
                    <td>{{$value.address}}</td>
                    <td>{{$value.sex}}</td>
                    <td>
                      <a href="/students/update?id={{ $value.id }}">编辑</a>
                      <a href="/students/delete?id={{ $value.id }}">删除</a>
                    </td>
                    </tr>
                {{/each}}
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>
